package com.yolo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 霜蟾
 * @since 2021-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yolo_post")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 岗位编号
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 部门编号
     */
    private Integer deptId;

    /**
     * 岗位名
     */
    private String postName;

    /**
     * 基本薪水
     */
    private Double salary;

    /**
     * 部门对象
     */
    @TableField(exist = false)
    private Dept dept;

}
